public class TestSimpleFactory {
    public static void main(String[] args) {
        SimpleFactory factory = new SimpleFactory();
        IProduct apple = factory.createProduct("apple");
        apple.grow();
        IProduct orange = factory.createProduct("orange");
        orange.grow();
    }
}